package com.tangyuan.Ali;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 支付宝支付返回数据
 */
@NoArgsConstructor
@Data
public class AliPayPay {
    @JsonProperty("alipay_trade_app_pay_response")
    private AlipayTradeAppPayResponseDTO alipayTradeAppPayResponse;
    @JsonProperty("sign")
    private String sign;
    @JsonProperty("sign_type")
    private String signType;

    @NoArgsConstructor
    @Data
    public static class AlipayTradeAppPayResponseDTO {
        @JsonProperty("code")
        private String code;
        @JsonProperty("msg")
        private String msg;
        @JsonProperty("app_id")
        private String appId;
        @JsonProperty("auth_app_id")
        private String authAppId;
        @JsonProperty("charset")
        private String charset;
        @JsonProperty("timestamp")
        private String timestamp;
        @JsonProperty("out_trade_no")
        private String outTradeNo;
        @JsonProperty("total_amount")
        private BigDecimal totalAmount;
        @JsonProperty("trade_no")
        private String tradeNo;
        @JsonProperty("seller_id")
        private String sellerId;
    }
}
